package com.cl.pattern.chain;

/**
 * 大老板
 *
 * 处理请假天数   7天以上，30天一下
 */
public class BigManager extends Handler {

    protected final static int MIN = 7;
    protected final static int MAX = 30;

    public BigManager() {
        //部门经理处理7天以上的请假
        super(MIN,MAX);
    }

    @Override
    protected void handleLeave(LeaveBill leave) {
        System.out.println(leave.getName() + "请假" + leave.getLeaveDays() + "天," + leave.getContent() + "。");
        System.out.println("总经理审批：同意。");
    }
}